package com.example.dblibrary.database.daos;

import java.util.ArrayList;
import java.util.List;

public class SingerCondition {
    private static final SingerCondition ourInstance = new SingerCondition();
    private List<String> columns = new ArrayList<>();

    public static SingerCondition getInstance() {
        return ourInstance;
    }

    private SingerCondition() {
        //歌曲
        columns.add(SingerIndexConstant.SINGS_ID, "SINGS_ID");
        columns.add(SingerIndexConstant.SINGS_NUM, "SINGS_NUM");
        columns.add(SingerIndexConstant.SINGS_NAME, "SINGS_NAME");
        columns.add(SingerIndexConstant.SINGER, "SINGER");
        columns.add(SingerIndexConstant.SINGS_LANGUAGE, "SINGS_LANGUAGE");
        columns.add(SingerIndexConstant.SINGS_TYPE, "SINGS_TYPE");
        columns.add(SingerIndexConstant.SINGS_MTVORVCD, "SINGS_MTVORVCD");
        columns.add(SingerIndexConstant.SINGS_FIRST_SPELL, "SINGS_FIRST_SPELL");
        columns.add(SingerIndexConstant.SINGS_NAME_LENGTH, "SINGS_NAME_LENGTH");
        columns.add(SingerIndexConstant.SINGS_TEMP, "SINGS_TEMP");
        columns.add(SingerIndexConstant.SINGS_FORMAT, "SINGS_FORMAT");
        columns.add(SingerIndexConstant.SINGS_EDITION, "SINGS_EDITION");
        columns.add(SingerIndexConstant.SINGS_STATUS, "SINGS_STATUS");
        columns.add(SingerIndexConstant.SINGS_PATH, "SINGS_PATH");
        columns.add(SingerIndexConstant.DOWNLOAD_PATH, "DOWNLOAD_PATH");
        columns.add(SingerIndexConstant.SINGS_SCORE, "SINGS_SCORE");
        columns.add(SingerIndexConstant.SINGS_ADD, "SINGS_ADD");


        //歌手
        columns.add(SingerIndexConstant.SINGER_ID, "SINGS_ADD");
    }

    public String getColumnByType(int type){
        return columns.get(type);
    }
}
